package com.hk.domain.config;

import com.hk.mybatis.config.MybatisPlusConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author miaoj
 */
@Configuration
@Import(MybatisPlusConfig.class)
@MapperScan("com.hk.domain.mapper")
@ComponentScan(basePackages = "com.hk.domain")
public class DomainConfig {
    @Bean
    public PasswordEncoder encoder() {
        return new BCryptPasswordEncoder(11);
    }
}
